package cn.hjh.dao;

import cn.hjh.pojo.District;


import java.io.Serializable;

public class DistrictDao extends BaseDao{
    public void save(District district){
        HibernateUtil.currentSession().save(district);
    }

    public void update(District district){
        HibernateUtil.currentSession().update(district);
    }
    public District get(Serializable id){
        return (District) HibernateUtil.currentSession().get(District.class,id);
    }


    public District selectDistrictById(Integer id) {
        return (District) this.currentSession().load(District.class, id);
    }


}
